var actionScan = 
	
"<div id=\"actiontxtrep\"> " + 
	"<script type=\"text/javascript\"> " +
		"function checkAction() { " +
			"if ($('#txtreponse').val() == '') { " +
				"return false; " +
			"} else { " +
				"return true; " +
			"} " +
		"}" +
		
		"function onLoad(data) {" +
			"$('#questionActionText').html(data.question); " +
		"}" +
		
		"function getReponse() {" +
			"return $('#txtreponse').val(); " +
		"}" +
		
		"function scanner() { " +
			"scannerCodeBarre.lancerAction(onScanSuccessCallBack, onErrorCallBack) " +
		"} " +

		"function onScanSuccessCallBack(result) { " +
			"$('#txtreponse').val(result.text); " +
		"} " +
		
		"function onErrorCallBack(erreur) { " +
			"alert('Une erreur est survenue lors du scan'); " +
		"} " +
		
	"</script>" +
	"<div id=\"questionActionText\"></div>" +
	"<br/>" +
	"<input id=\"txtreponse\" type=\"text\" value=\"\" readonly=\"readonly\" />" +
	"<br />" +
	"<input type=\"button\" value=\"Scanner\" onclick=\"scanner();\" />" +
"</div>";